package com.thingsgrid.basicInterface.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2019-08-10
 */
@Data
@TableName("blade_basic_interface")
@ApiModel(value = "BasicInterface对象", description = "BasicInterface对象")
public class BasicInterface implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "api_id", type = IdType.ID_WORKER)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long apiId;

	private String apiName;
	private String apiDescription;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date apiCreateTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date apiUpdateTime;

	public String baseUrl;

	@TableLogic
	private Integer isDelete;

	/**属于功能分类*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long typeId;


	/**收费类型*/
	private String chargeType;

	/**是否需要用户授权*/
	private String userAuth;


	/**预留字段*/
	private String reservedField;
}
